package cn.diancan.action.api;

import java.util.List;

import com.opensymphony.xwork2.ModelDriven;

import cn.diancan.action.BaseAction;
import cn.diancan.model.ShopClerk;
import cn.diancan.vo.mobile.ShopClerkApiActionVo;

public class ShopClerkAction extends BaseAction implements ModelDriven<ShopClerkApiActionVo>{
    
    
    /**
     * 
     */
    private static final long serialVersionUID = -4710284572247080742L;
    private ShopClerkApiActionVo requestVo = new ShopClerkApiActionVo();
    
    public String shopClerkList(){
        try {
            List<ShopClerk> shopClerks= shopClerkService.findShopClerk(requestVo.getLastUpdateTimeStamp(), requestVo.getPageNo(), requestVo.getRow());
            return jsonFormat(shopClerks);
        }   catch (Exception e) {
            return jsonError(e);
        }
    }
    
    

    @Override
    public ShopClerkApiActionVo getModel() { 
	return requestVo;
    }

}
